package com.javaee.ioc.xml;


import org.springframework.context.support.ClassPathXmlApplicationContext;

public class GreetingBeanTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");

        Robot robot = (Robot) context.getBean("robot");
        robot.sayHello();
    }
}